/*
 * UMLSynch plugin for Eclipse-CDT
 * http://umlsynch.googlecode.com
 *
 * Copyright 2008-2010, Evgeny Alexeyev
 * Licensed under the EPL - v1.0
 * http://www.eclipse.org/legal/epl-v10.html
 *
 */
package com.googlecode.umlsynch.eclipse.cdt;

import com.googlecode.umlsynch.eclipse.astutils.TranslationUnitUtils;
import com.googlecode.umlsynch.rpc.IFinderRpc;
import com.googlecode.umlsynch.rpc.TClassDescriptor;
import com.googlecode.umlsynch.rpc.TFileDescriptor;
import com.googlecode.umlsynch.rpc.TSearchQueryDescriptor;

public class TCdtFinderRpc implements IFinderRpc {
	
	private TranslationUnitUtils tuUtils = TranslationUnitUtils.GetInstance();
	
	public TCdtFinderRpc() {
	}

	@Override
	public TClassDescriptor[] FindClassByName(TFileDescriptor[] searchPaths,
			String searchNamePattern) {
		return tuUtils.FindClassByName(searchPaths, searchNamePattern);
	}

	@Override
	public void FindValueByName(TFileDescriptor sourceFile, String namePattern) {
		tuUtils.FindValuesByType(sourceFile, namePattern);
	}

	@Override
	public void FindValueByType(TFileDescriptor sourceFile, String namePattern) {
		tuUtils.FindValuesByType(sourceFile, namePattern);
	}

	@Override
	public void SearchTextPattern(TSearchQueryDescriptor desc) {
		// TODO Auto-generated method stub

	}

}
